package com.winshare.saleAssistant.dao;

import com.winshare.saleAssistant.domain.dto.req.ProductInfoVersionCreateDTO;
import com.winshare.saleAssistant.domain.dto.req.ProductInfoVersionUpdateDTO;
import com.winshare.saleAssistant.domain.entity.ProductInfoVersionDO;
import com.winshare.saleAssistant.domain.query.ProductInfoVersionQuery;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface ProductInfoVersionMapper {

    int countProductInfoVersionByProductInfoDO(ProductInfoVersionDO productInfoVersionDO);

    int saveProductInfoVersion(ProductInfoVersionDO productInfoVersionDO);

    int updateProductInfoVersion(ProductInfoVersionUpdateDTO productInfoVersionUpdateDTO);

    ProductInfoVersionDO getProductInfoVersion(ProductInfoVersionDO productInfoVersionDO);

    int deleteProductInfoVersion(ProductInfoVersionDO productInfoVersionDO);

    int queryProductInfoVersionCount(ProductInfoVersionQuery productInfoVersionQuery);

    List<ProductInfoVersionDO> findProductInfoVersionListByConditions(ProductInfoVersionQuery productInfoVersionQuery);
}
